
#define HDSafeTopHeight (^(void){if (@available(iOS 11.0, *)) {return [UIApplication sharedApplication].keyWindow.safeAreaInsets.top;}else{ return (CGFloat)20.0;}}())
#define HDSafeBottomHeight (^(void){if(@available(iOS 11.0, *)){return [UIApplication sharedApplication].keyWindow.safeAreaInsets.bottom;}else{return (CGFloat)0.0;}}())
#define HDScreenHeight ([UIApplication sharedApplication].keyWindow.bounds.size.height)
#define HDScreenWidth ([UIApplication sharedApplication].keyWindow.bounds.size.width)
#define HDWeakSelf __weak typeof(self) weakSelf = self;
#define HDNavHeight 44.0f
